

{php} if(\think\Hook::get('adminEditor') && MODULE_NAME == 'Admin'){{/php}
<label class="textarea">
    <textarea name="{$name}" id="{$id}">{$default}</textarea>
    {:hook('adminEditor', array('id'=>$id,'value'=>$default))}
</label>

{php}}elseif(\think\Hook::get('editor')){{/php}

<label class="textarea">
    <textarea name="{$name}" id="{$id}">{$default}</textarea>
    {:hook('editor', array('id'=>$id,'value'=>$default))}
</label>

{php}}else{{/php}
<script type="text/plain" name="{$name}" id="{$id}" style="width:{$width};height:{$height};{$style}">{$default}</script>
<script>
    var  ue_{$id};
    $(function () {
    var config = {{$config},'topOffset':$('#nav_bar').height()+$('#sub_nav').height()+5};
    ue_{$id} = UE.getEditor('{$id}', config);
    })


</script>



{load href="/static/ueditor/ueditor.config.js" /}
{load href="/static/ueditor/ueditor.all.min.js" /}

{php}}{/php}